package com.lagou.edu.dao;

import com.lagou.edu.pojo.User;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * @Author grung
 * @Date 2020/10/23 13:52
 * @Version 1.0
 */

public interface UserDao extends JpaRepository<User,Long> {

    /**
     * 根据邮箱和密码查询
     * @param email
     * @param password
     * @return
     */
    User findUserByEmailAndPassword(String email,String password);

    User findByEmail(String email);
}
